//用于显示班级人员列表的grid的Store
var personalSpaceClassesMemberGridStore = Ext.create('Ext.data.Store');

//用于显示组人员列表的grid的Store
var personalSpaceGroupMemberGridStore = Ext.create('Ext.data.Store');

//用于显示成绩的grid
var personalSpaceGradeStore = Ext.create('Ext.data.Store', {
    proxy: {
        type: 'ajax',
        reader: {
            type: 'json'
        }
    }
});

var personalSpaceTreeStore = Ext.create('Ext.data.TreeStore', {
    model: 'TreeModel',
    proxy: {
        type: 'ajax',
        url: zuulUrl + '/' + authServiceName + '/user/inWitchClasses/' + currentUserId,
        reader: {
            type: 'json'
        },
        extractResponseData: function (response) {
            var data = response.responseJson;
            Ext.each(data, function (record) {
                record.text = record['title'];// 将后台传来的对应字段的值赋给菜单的text字段
                if (record.childrenCount == 0)// 如果这个节点的可显示节点数量等于0则将此文件夹设置为不可展开
                    record.expandable = false;
            });
            return data;
        }
    },
    parentIdProperty: 'parentId'
});